<template>
  <div class="wrap">
    <button class="print-btn" v-on:click="btnClickPrint">
        <span>print</span>
    </button>
  </div>
</template>

<script>
import {getLodop} from "@/utils/LodopFuncs"
export default {
  name: 'PrintWrap',
  methods: {
    btnClickPrint: function () {
    let LODOP = getLodop()//调用getLodop获取LODOP对象
    LODOP.PRINT_INIT("")
    LODOP.ADD_PRINT_TEXT(50, 231, 260, 39, "打印内容")
    LODOP.PREVIEW()
    //LODOP.PRINT()
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
